<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
    //用户模型关联表
    public $table='stu';
    //关联表的主键
    public $primaryKey='id';
    /**
     * 允许被批量操作的此字段
     *
     * @var array
     */
    protected $fillable = [
        'username', 'password', 'tel', 'address', 'sex',
    ];
    //禁用时间戳
    public $timestamps =false;

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];
}
